package soundsystem;
import org.springframework.stereotype.Component;

@Component
public class SgtPeppers implements CompactDisc{
    @Override
    public void play() {
        System.out.println("play 1111");
    }
}


//@Component
//class SgtPeppers2 implements CompactDisc{
//    SgtPeppers sgtPeppers;
//
//    public SgtPeppers2(CompactDisc sgtPeppers) {
//        this.sgtPeppers = (SgtPeppers) sgtPeppers;
//    }
//
//    @Override
//    public void play() {
//        System.out.println("play2222");
//        sgtPeppers.play();
//    }
//}
